<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>optgroup标签示例</title>
</head>
<body>
	<s:form>
		<!-- 使用Map对象来生成下拉选择框的选项组 -->
		<s:select label="请选择您的岗位" name="select" list="{''}">
			<s:optgroup label="计算机系" list="#{'HR1':'软件技术','HR2':'网络管理'}" />
			<s:optgroup label="人文社科系" list="#{'CA1':'酒店管理','CA2':'空中乘务'}" />
			<s:optgroup label="电子工程系" list="#{'DZ1':'应用电子技术','DZ2':'电子信息工程技术'}" />

		</s:select>
	</s:form>
</body>
</html>